package com.study.泛型;

public class MultiType <E,T>{
	E value1;
	T value2;

	public MultiType(E value1, T value2) {
		this.value1 = value1;
		this.value2 = value2;
	}

	public E getValue1(){
		return value1;
	}
	
	public T getValue2(){
		return value2;
	}

	private static MultiType<String, String> test = new MultiType("test","hahah");

	@Override
	public String toString() {
		return "MultiType{" +
				"value1=" + value1 +
				", value2=" + value2 +
				'}';
	}

	public static void main(String[] args) {
		System.out.println(test.toString());
	}
}


